<template>
	<view class="index">
		<u-tabbar v-model="current" height="100" inactive-color="#333333" active-color="#2F73FD" :list="navList"></u-tabbar>
	</view>
</template>
<script>
	export default {
		name: 'Nav',
		current: {
			type: Number,
			value: null
		},
		data() {
			return {
				lang: {},
				current: this.current,
				navList: [{
						iconPath: "/static/images/ico/index.png",
						selectedIconPath: "/static/images/ico/index_a.png",
						text: '首页',
						pagePath: '/pages/index/index'

					},
					{
						iconPath: "/static/images/ico/transaction.png",
						selectedIconPath: "/static/images/ico/transaction_a.png",
						text: '交易',
						pagePath: '/pages/Transaction/index'
					},
					{
						iconPath: "/static/images/ico/log.png",
						selectedIconPath: "/static/images/ico/log_a.png",
						text: '日志',
						pagePath: '/pages/Log/index'
					},
					{
						iconPath: "/static/images/ico/news.png",
						selectedIconPath: "/static/images/ico/news_a.png",
						text: '资讯',
						pagePath: '/pages/News/index'
					},
					{
						iconPath: "/static/images/ico/mine.png",
						selectedIconPath: "/static/images/ico/mine_a.png",
						text: '我的',
						pagePath: '/pages/Mine/index'
					}
				]
			}
		},
		created() {

		},
		onLoad() {

		},
		methods: {

		}
	}
</script>
<style lang="less" scoped>
	.index {
		::v-deep .u-tabbar__content__item__text {
			font-size: 10px;
		}
	}
</style>
